/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package officeboost.domain;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import officeboost.domain.strategy.ExpireStrategy;
import officeboost.domain.strategy.LeaveStrategy;
import officeboost.entity.Group;

/**
 *
 * @author sorra
 */
@Stateless
@LocalBean
public class StrategyService {
    @PersistenceContext
    EntityManager em;

    public void assign(Group group, String strategyKey) {
	group.setStrategyKey(strategyKey);
	em.merge(group);
    }
    
    public LeaveStrategy getLeaveStrategy(String strategyKey) {
	return null;
    }
    
    public ExpireStrategy getExpireStrategy(String strategyKey) {
	return null;
    }
    
}
